package com.aboo.service;

import com.aboo.api.StudentService;
import com.aboo.domain.Student;
import org.apache.dubbo.config.annotation.Service;

@Service(group = "school", version = "1.0")
public class ProviderStudent01Service implements StudentService {

    @Override
    public Student getByName(String name) {
        Student student = new Student();
        student.setName(name);
        student.setFather(name + "'s father");
        student.setMother(name + "'s mother");
        student.setTeacher(name + "'s teacher");

        return student;
    }

}
